package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IJDHeaderFragmentModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.TransformUtils;
import com.wgts.wgts.netmodle.req.ProductEvaluateRequest;
import com.wgts.wgts.netmodle.req.UpDownProductRequest;
import com.wgts.wgts.netmodle.resp.ProductEvaluateEntity;
import com.wgts.wgts.rxjava.MVPResultSubscriber;
import com.wgts.wgts.tools.CountDownTime;
import com.wgts.wgts.tools.CountDownTimerListener;

import rx.Observable;
import rx.Subscriber;

public class JDHeaderFragmentModel implements IJDHeaderFragmentModel {

    private NetService netService;



    public JDHeaderFragmentModel(NetService netService) {
        this.netService = netService;

    }

    @Override
    public void productEvaluate(ProductEvaluateRequest request, HttpResultSubscriber<ProductEvaluateEntity> subscriber) {
        netService.productEvaluate(request, subscriber);
    }

    @Override
    public void updownProduct(UpDownProductRequest request, HttpResultSubscriber<Integer> subscriber) {
        netService.updownProduct(request, subscriber);
    }



}
